<?php
$username = $_COOKIE["username"];
$search = 'substitution';
$replace = $username;
 
$file_path = './admin/main/Exam/Python/test.py';
 
$file_content = file_get_contents($file_path);
$file_content = str_replace($search, $replace, $file_content);
file_put_contents($file_path, $file_content);
//此处是查找Python执行文件中密钥以及替换密钥，指定用户分路径





echo '<!DOCTYPE html>
<html>
<head>
    <title>Waiting...</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f2f2f2;
            text-align: center;
            padding-top: 50px;
        }
        
        h1 {
            color: #333;
            font-size: 24px;
            margin-bottom: 20px;
        }
        
        p {
            color: #666;
            font-size: 16px;
            line-height: 1.5;
        }
        
        .loader {
            border: 16px solid #f3f3f3;
            border-top: 16px solid #3498db;
            border-radius: 50%;
            width: 120px;
            height: 120px;
            animation: spin 2s linear infinite;
            margin: 0 auto;
            margin-bottom: 20px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
    </style>
</head>
<body>
    <h1>Waiting...</h1>
    <p>您的请求已发送 服务器处理请求中 请稍后...</p>
    <div class="loader"></div>
</body>
</html>';

?>
